//
// Created by richard on 2019-01-21.
//

#ifndef SEEDCULTURE_SIMSENSORINPLC_H
#define SEEDCULTURE_SIMSENSORINPLC_H

#include "SimLinearSensor.h"

class SimSensorInPlc : public SimLinearSensor {
private:
    uint16_t * output_addr;
    uint8_t * raiseInput_addr;
    uint8_t * reduceInput_addr;
public:
    SimSensorInPlc(uint16_t value, int timeStep, uint16_t *output_addr,
            uint8_t *raiseInput_addr,uint8_t *reduceInput_addr);

private:
    void loopCallback() override;
};



#endif //SEEDCULTURE_SIMSENSORINPLC_H
